package com.jintian.smart.platform.system.mapper;

import com.jintian.smart.kernel.orm.mapper.IBaseExtMapper;
import com.jintian.smart.base.api.system.entity.DictEntity;
import com.jintian.smart.base.api.system.form.DictQueryForm;
import com.jintian.smart.base.api.system.view.DictVO;
import org.beetl.sql.core.page.PageResult;
import org.beetl.sql.mapper.annotation.Mapper;
import org.beetl.sql.mapper.annotation.Param;
import org.beetl.sql.mapper.annotation.SqlResource;

/**
 * 数据字典 Dao
 */

@Mapper
@SqlResource("system.Dict")
public interface DictMapper extends IBaseExtMapper<DictEntity> {
    /**
     * 分页 查询
     */
    PageResult<DictVO> queryPage(DictQueryForm queryForm);

    /**
     * 根据 dictCode 去查询
     */
    DictEntity selectByCode(@Param("code") String code);
}
